package com.ebring.shareEducation.dao;

import com.ebring.shareEducation.bean.RoleMenu;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface RoleMenuMapper extends Mapper<RoleMenu> {
    //通过角色id查询角色下面拥有的菜单
   List<RoleMenu> selectRoleMenu(@Param("roleId") String roleId);
   //通过角色id删除角色下面的菜单
   Integer deleteRoleMenuByRoleId(@Param("roleId") String roleId);
    List<RoleMenu> selectRoleMenuByMenuId(@Param("menuId") String menuId, @Param("roleId") String roleId);

}
